//
//  NSString+Tool.h
//  SLDemo
//
//  Created by bocai on 2016/12/2.
//  Copyright © 2016年 Heracles. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString *const T_DateFormat_yyyy_MM_dd_HH_mm;
extern NSString *const T_DateFormat_yyyy_MM_dd_HH_mm_ss;

@interface NSString (Tool)

@property (readonly, nonatomic) NSString *t_md5String;
@property (readonly, nonatomic) NSString *t_sha1String;

@property (readonly, nonatomic) NSString *t_trimmingSpaceString;

- (NSDate *)t_dateWithDateFormat:(NSString *)dateFormat;

- (BOOL)t_isValidWithRegexString:(NSString *)regexString;
- (BOOL)t_isValidMobilePhoneNumber;
- (BOOL)t_isValidLicensePlateNumber;

@end
